/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #e0ecff, #f7f7f7);
}

/* 导航栏样式 */
.nav {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 20px;
  background-color: #3a86ff;
  color: white;
}

/* 登录容器样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
  /* 去除导航栏高度后剩余的高度 */
}

/* 登录对话框样式 */
.login-dialog {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px 40px;
  width: 300px;
}

/* 标题样式 */
.login-dialog h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #3a86ff;
}

/* 每行样式 */
.row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.row span {
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

/* 输入框样式 */
.row input[type="text"],
.row input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* 按钮行样式：左右分布 */
.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* 按钮统一宽度，适应并排布局 */
.button-row button {
  width: 48%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* 登录按钮样式 */
#submit {
  background-color: #3a86ff;
  color: white;
}

#submit:hover {
  background-color: #2a6fd9;
}

/* 注册按钮样式 */
#register {
  background-color: #4caf50;
  color: white;
}

#register:hover {
  background-color: #45a049;
}